HACK: vtkQWidgetTexture.cxx: Don't use vtkOpenGLCheckErrorMacro
authorAdrian Bunk <bunk@debian.org>
Tue, 18 Jan 2022 23:10:52 +0000 (01:10 +0200)
committerAdrian Bunk <bunk@debian.org>
Tue, 18 Jan 2022 23:11:15 +0000 (01:11 +0200)
Fixes building  for Qt with OpenGL ES.

debian/patches/84_vtkQWidgetTexture_no_vtkOpenGLCheckErrorMacro.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/84_vtkQWidgetTexture_no_vtkOpenGLCheckErrorMacro.patch b/debian/patches/84_vtkQWidgetTexture_no_vtkOpenGLCheckErrorMacro.patch
new file mode 100644 (file)
index 0000000..0744d41
--- /dev/null
@@ -0,0 +1,24 @@
+Description: HACK: vtkQWidgetTexture.cxx: Don't use vtkOpenGLCheckErrorMacro
+ Fixes building for Qt with OpenGL ES.
+Author: Adrian Bunk <bunk@debian.org>
+
+--- vtk9-9.1.0+dfsg2.orig/GUISupport/Qt/vtkQWidgetTexture.cxx
++++ vtk9-9.1.0+dfsg2/GUISupport/Qt/vtkQWidgetTexture.cxx
+@@ -18,7 +18,7 @@
+ #include "vtkOpenGLResourceFreeCallback.h"
+ #include "vtkOpenGLState.h"
+-#include "vtkOpenGLError.h"
++//#include "vtkOpenGLError.h"
+ #include <QGraphicsProxyWidget>
+ #include <QGraphicsScene>
+@@ -98,7 +98,7 @@ vtkQWidgetTexture::vtkQWidgetTexture()
+       }
+       this->Create2DFromRaw(width, height, 4, VTK_UNSIGNED_CHAR, this->ImageBuffer);
+-      vtkOpenGLCheckErrorMacro("failed after QWidgeTexture repaint and draw");
++      //vtkOpenGLCheckErrorMacro("failed after QWidgeTexture repaint and draw");
+     }
+   };
+ }
index 6c21f514ac936abc518a29e989d593d8ba3e7a64..11535dec5d0a03766c5bff15e32e810118dedb14 100644 (file)
@@ -5,6 +5,7 @@
 50_fix_python-modules_path.patch
 60_fix_path_perl.patch
 83_allow_gles_platforms.patch
+84_vtkQWidgetTexture_no_vtkOpenGLCheckErrorMacro.patch
 95_java_mach-arch_fix.patch
 97_reproducible_builds.patch
 98_fix_mpi4py.py